package com.ict.web.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class UpdateTechnicalTitleDto {
  @ApiModelProperty(value = "技术职称id")
  @TableId(value = "technical_id",type = IdType.ASSIGN_ID)
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private Long technicalId;

  @ApiModelProperty(value = "职称名称")
  private String jobTitle;

  @ApiModelProperty(value = "通过时间")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date passingTime;

  @ApiModelProperty(value = "截止时间")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date deadline;

  @ApiModelProperty(value = "附件")
  private String technicalFile;
}
